﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/component/commonTagLib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">
<%@ include file="/WEB-INF/component/commonCSS.jsp"%>
<style type="text/css">

</style>
</head>
<body class="skin-blue-light sidebar-mini fixed skin-blue-light-frame" style="height:650px;overflow-y:scroll;"  >
<div class="box box-primary" id="more" style="width:110px;height:35px;background-color:#222c32;position:absolute;z-index:9999;left:850px;top:100px;display:none;font-size:12px;border-top-color:#222c32;">
            <div class="box-body home-message" id="moreOp" >
            </div>
</div>
	<section class="content-header">
		<h1>公示结果</h1>
		<ol class="breadcrumb">
			<li><a href="${ctx}/home.jsp"><i class="fa fa-home"></i>首页</a></li>
			<li class="active"><a href="#">分类采购</a></li>
			<li class="active"><a href="#">药品招标管理</a></li>
			<li class="active"><a href="#">资质管理</a></li>
			<li class="active"><a href="#">公示结果</a></li>
		</ol>
		
</section>
<section class="content" >

<table class="jqgrid" id="gridlist"></table>
<div class=" box box-warning bottongroup">
			<label id="allOk" class="btn btn-default btn-sm" onclick='javascript:history.go(-1)'>返&nbsp;回</label>
		</div>
</section>
</body>
</html>
<%@ include file="/WEB-INF/component/commonJS.jsp"%>
<script type="text/javascript">


$(function () {
    $("#gridlist").jqGrid({
        url: "getResultList.html?projId=${projId}",
        mtype: "POST",
        datatype: "json",
        autowidth: true,
        height: 270,                   	
        colNames: ['操作','公示名称','脚本上传人','脚本上传时间','脚本执行人','脚本执行时间'],
        colModel: [
                { name: 'operate', width: "15%",align: 'center',sortable: false,
	               formatter : function(val, opts, rowdata) {
		           var str = "";                    
		              str +="<a target='_blank' href='/medstgmini/bidPubSettings/toDetailResult.html?bidPubSettingsId="+rowdata.bidPubSettingsId+"' >执行结果</a>";
                        return str;
	               }
                },
				{ name: 'scriptName', width: "10%",align: 'center',sortable: false},		
				{ name: 'scriptSubmitUser', width: "15%",align: 'center' ,sortable: false},
				{ name: 'scriptSubmitDatetime', width: "15%",align: 'center' ,sortable: false,
					formatter : function(val, opts, rowdata) {
						return new Date(val).format("yyyy-MM-dd hh:mm:ss");
					}
				},
				{ name: 'execUser', width: "15%",align: 'center' ,sortable: false},
				{ name: 'execDatetime', width: "15%",align: 'center' ,sortable: false,
					formatter : function(val, opts, rowdata) {
						return val!=null?new Date(val).format("yyyy-MM-dd hh:mm:ss"):"";
					}
				}
				
        ],
        rowNum: 20,
        rowList: [10, 20, 50,100],
        rownumbers: true,
        pager: "#gridpage",
        viewrecords: true,
        caption: "公示结果列表",
        jsonReader: {
        	repeatitems: false,
        	id: "compRegId"
        }
    });
    $("#gridlist").jqGrid('navGrid', '#gridpage', { add: false, edit: false, del: false, search: false, refresh: false });
});

	function getList(postData){
			$.post('getComplainResultList.html?projId=${projId}',
					postData, function(result) {
						if (result.success) {
							var html = template('test', result);
							$('#content').append(html);
							records=result.records;  //总条数
						} else {
							$.HN.message.alert("数据获取失败", '信息', 'error');
						}
					}, "json");
		}
</script>